import { request } from '@/api/request';
import { APIZP } from '@/common';

/**
 * @desc 等级列表
 */
type GradeType = {
  gradeColorBackground: string;
  gradeColorShape: string;
  sort: number;
  gradeName: string;
  startRatio: number;
  endRatio: number;
  showName: string;
  starRating?: number;
  driverNum?: number;
};
export const getGrade = () =>
  request<GradeType[]>({
    method: 'get',
    url: `${APIZP}securityIndexLevelSetting/list`,
  });
